package com.core.zyyz.amc.modules.domain;

import java.io.Serializable;

public class PTERole implements Serializable {
    private static final long serialVersionUID = 8529417819379827923L;
    private String roleCode;
    private String roleName;
    private String appCode;
    private String roleType;
    private String homePageUrl;
    private String homeTemplateCode;

    public PTERole(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getRoleCode() {
        return this.roleCode;
    }

    public String getRoleName() {
        return this.roleName;
    }

    public String getAppCode() {
        return this.appCode;
    }

    public String getRoleType() {
        return this.roleType;
    }

    public String getHomePageUrl() {
        return this.homePageUrl;
    }

    public String getHomeTemplateCode() {
        return this.homeTemplateCode;
    }

    public void setRoleCode(final String roleCode) {
        this.roleCode = roleCode;
    }

    public void setRoleName(final String roleName) {
        this.roleName = roleName;
    }

    public void setAppCode(final String appCode) {
        this.appCode = appCode;
    }

    public void setRoleType(final String roleType) {
        this.roleType = roleType;
    }

    public void setHomePageUrl(final String homePageUrl) {
        this.homePageUrl = homePageUrl;
    }

    public void setHomeTemplateCode(final String homeTemplateCode) {
        this.homeTemplateCode = homeTemplateCode;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof PTERole)) {
            return false;
        } else {
            PTERole other = (PTERole)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$roleCode = this.getRoleCode();
                Object other$roleCode = other.getRoleCode();
                if (this$roleCode == null) {
                    if (other$roleCode != null) {
                        return false;
                    }
                } else if (!this$roleCode.equals(other$roleCode)) {
                    return false;
                }

                Object this$roleName = this.getRoleName();
                Object other$roleName = other.getRoleName();
                if (this$roleName == null) {
                    if (other$roleName != null) {
                        return false;
                    }
                } else if (!this$roleName.equals(other$roleName)) {
                    return false;
                }

                Object this$appCode = this.getAppCode();
                Object other$appCode = other.getAppCode();
                if (this$appCode == null) {
                    if (other$appCode != null) {
                        return false;
                    }
                } else if (!this$appCode.equals(other$appCode)) {
                    return false;
                }

                label62: {
                    Object this$roleType = this.getRoleType();
                    Object other$roleType = other.getRoleType();
                    if (this$roleType == null) {
                        if (other$roleType == null) {
                            break label62;
                        }
                    } else if (this$roleType.equals(other$roleType)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$homePageUrl = this.getHomePageUrl();
                    Object other$homePageUrl = other.getHomePageUrl();
                    if (this$homePageUrl == null) {
                        if (other$homePageUrl == null) {
                            break label55;
                        }
                    } else if (this$homePageUrl.equals(other$homePageUrl)) {
                        break label55;
                    }

                    return false;
                }

                Object this$homeTemplateCode = this.getHomeTemplateCode();
                Object other$homeTemplateCode = other.getHomeTemplateCode();
                if (this$homeTemplateCode == null) {
                    if (other$homeTemplateCode != null) {
                        return false;
                    }
                } else if (!this$homeTemplateCode.equals(other$homeTemplateCode)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof PTERole;
    }

//    public int hashCode() {
//        int PRIME = true;
//        int result = 1;
//        Object $roleCode = this.getRoleCode();
//        int result = result * 59 + ($roleCode == null ? 43 : $roleCode.hashCode());
//        Object $roleName = this.getRoleName();
//        result = result * 59 + ($roleName == null ? 43 : $roleName.hashCode());
//        Object $appCode = this.getAppCode();
//        result = result * 59 + ($appCode == null ? 43 : $appCode.hashCode());
//        Object $roleType = this.getRoleType();
//        result = result * 59 + ($roleType == null ? 43 : $roleType.hashCode());
//        Object $homePageUrl = this.getHomePageUrl();
//        result = result * 59 + ($homePageUrl == null ? 43 : $homePageUrl.hashCode());
//        Object $homeTemplateCode = this.getHomeTemplateCode();
//        result = result * 59 + ($homeTemplateCode == null ? 43 : $homeTemplateCode.hashCode());
//        return result;
//    }

    public String toString() {
        return "PTERole(roleCode=" + this.getRoleCode() + ", roleName=" + this.getRoleName() + ", appCode=" + this.getAppCode() + ", roleType=" + this.getRoleType() + ", homePageUrl=" + this.getHomePageUrl() + ", homeTemplateCode=" + this.getHomeTemplateCode() + ")";
    }

    public PTERole() {
    }
}
